package com.mpyy.service.systemSetting;

import com.mpyy.dao.systemSetting.OperatorDao;
import com.mpyy.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName:com.mpyy.service.systemSetting
 * @ClassName:OperatorServiceImpl
 * @Date:2022-03-30:15:50
 * @Author: Tang Neng
 */
@Service
public class OperatorServiceImpl implements OperatorServiceInter {
    @Autowired
    @Qualifier(value = "operatorDao")
    private OperatorDao operatorDao;

    @Override
    public OperatorInfo searchOperatorLoginInfo(OperatorInfo operatorInfo) {
        return operatorDao.searchOperatorLoginInfo(operatorInfo);
    }

    @Override
    public List<ProductType> searchTreeControl() {
        return operatorDao.searchTreeControl();
    }

    @Override
    public List<ProductInfo> searchCommodityClassInfo(String string , Paging paging) {
        return operatorDao.searchCommodityClassInfo(string , paging);
    }

    @Override
    public List<MenmberTypeld> searchCommodityClassDescInfo(String proId) {
        return operatorDao.searchCommodityClassDescInfo(proId);
    }

    @Override
    public int updateCommodityPriceInfo(ProductInfo productInfo) {
        return operatorDao.updateCommodityPriceInfo(productInfo);
    }

    @Override
    public int updateCommodityAdjustPriceAdd(PriceAdjustment priceAdjustment) {
        return operatorDao.updateCommodityAdjustPriceAdd(priceAdjustment);
    }
}
